package com.hsh.maoduo.controller;

import com.hsh.maoduo.common.Result;
import com.hsh.maoduo.service.YTZGService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/ytzg")
public class YTZGController {
    @Resource(name = "YTZGServiceImpl")
    private YTZGService YTZGService;

    @GetMapping("/writeSendExcel")
    public Result writeSendExcel(String dateStr) {
        return YTZGService.writeSendExcel(dateStr);
    }
}
